<?php

class qtype_preg_cross_tests_from_att_assoc {

    function data_for_test_att_leftassoc_0() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(a|ab)(c|bcd)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_1() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(a|ab)(bcd|c)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_2() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(ab|a)(c|bcd)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_3() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(ab|a)(bcd|c)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_4() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
                        'length'=>array(0=>3,1=>0,2=>3,3=>0));

        return array( 'regex'=>'(a*)(b|abc)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_5() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
                        'length'=>array(0=>3,1=>0,2=>3,3=>0));

        return array( 'regex'=>'(a*)(abc|b)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_6() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
                        'length'=>array(0=>3,1=>0,2=>3,3=>0));

        return array( 'regex'=>'(a*)(b|abc)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_7() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
                        'length'=>array(0=>3,1=>0,2=>3,3=>0));

        return array( 'regex'=>'(a*)(abc|b)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_8() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(a|ab)(c|bcd)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_9() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(a|ab)(bcd|c)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_10() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(ab|a)(c|bcd)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_leftassoc_11() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
                        'length'=>array(0=>4,1=>1,2=>3,3=>0));

        return array( 'regex'=>'(ab|a)(bcd|c)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_LEFT));
    }

    function data_for_test_att_rightassoc_0() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(a|ab)(c|bcd)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_1() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(a|ab)(bcd|c)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_2() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(ab|a)(c|bcd)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_3() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(ab|a)(bcd|c)(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_4() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
                        'length'=>array(0=>3,1=>1,2=>1,3=>1));

        return array( 'regex'=>'(a*)(b|abc)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_5() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
                        'length'=>array(0=>3,1=>1,2=>1,3=>1));

        return array( 'regex'=>'(a*)(abc|b)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_6() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
                        'length'=>array(0=>3,1=>1,2=>1,3=>1));

        return array( 'regex'=>'(a*)(b|abc)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_7() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
                        'length'=>array(0=>3,1=>1,2=>1,3=>1));

        return array( 'regex'=>'(a*)(abc|b)(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_8() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(a|ab)(c|bcd)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_9() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(a|ab)(bcd|c)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_10() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(ab|a)(c|bcd)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_rightassoc_11() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
                        'length'=>array(0=>4,1=>2,2=>1,3=>1));

        return array( 'regex'=>'(ab|a)(bcd|c)(d|.*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T, qtype_preg_cross_tester::TAG_ASSOC_RIGHT));
    }

    function data_for_test_att_forcedassoc_0() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1),
                        'length'=>array(0=>4,1=>1,2=>3));

        return array( 'regex'=>'(a|ab)(c|bcd)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_1() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1),
                        'length'=>array(0=>4,1=>1,2=>3));

        return array( 'regex'=>'(a|ab)(bcd|c)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_2() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1),
                        'length'=>array(0=>4,1=>1,2=>3));

        return array( 'regex'=>'(ab|a)(c|bcd)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_3() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1),
                        'length'=>array(0=>4,1=>1,2=>3));

        return array( 'regex'=>'(ab|a)(bcd|c)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_4() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>1,4=>4),
                        'length'=>array(0=>4,1=>4,2=>1,3=>3,4=>0));

        return array( 'regex'=>'((a|ab)(c|bcd))(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_5() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>1,4=>4),
                        'length'=>array(0=>4,1=>4,2=>1,3=>3,4=>0));

        return array( 'regex'=>'((a|ab)(bcd|c))(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_6() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>1,4=>4),
                        'length'=>array(0=>4,1=>4,2=>1,3=>3,4=>0));

        return array( 'regex'=>'((ab|a)(c|bcd))(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_7() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>1,4=>4),
                        'length'=>array(0=>4,1=>4,2=>1,3=>3,4=>0));

        return array( 'regex'=>'((ab|a)(bcd|c))(d*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_8() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>2,4=>3),
                        'length'=>array(0=>4,1=>2,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a|ab)((c|bcd)(d*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_9() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>2,4=>3),
                        'length'=>array(0=>4,1=>2,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a|ab)((bcd|c)(d*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_10() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>2,4=>3),
                        'length'=>array(0=>4,1=>2,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(ab|a)((c|bcd)(d*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_11() {
        $test1 = array( 'str'=>'abcd',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2,3=>2,4=>3),
                        'length'=>array(0=>4,1=>2,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(ab|a)((bcd|c)(d*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_12() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0),
                        'length'=>array(0=>3,1=>0,2=>3));

        return array( 'regex'=>'(a*)(b|abc)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_13() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0),
                        'length'=>array(0=>3,1=>0,2=>3));

        return array( 'regex'=>'(a*)(abc|b)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_14() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>0,4=>3),
                        'length'=>array(0=>3,1=>3,2=>0,3=>3,4=>0));

        return array( 'regex'=>'((a*)(b|abc))(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_15() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>0,4=>3),
                        'length'=>array(0=>3,1=>3,2=>0,3=>3,4=>0));

        return array( 'regex'=>'((a*)(abc|b))(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_16() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>1,4=>2),
                        'length'=>array(0=>3,1=>1,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a*)((b|abc)(c*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_17() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>1,4=>2),
                        'length'=>array(0=>3,1=>1,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a*)((abc|b)(c*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_18() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0),
                        'length'=>array(0=>3,1=>0,2=>3));

        return array( 'regex'=>'(a*)(b|abc)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_19() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0),
                        'length'=>array(0=>3,1=>0,2=>3));

        return array( 'regex'=>'(a*)(abc|b)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_20() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>0,4=>3),
                        'length'=>array(0=>3,1=>3,2=>0,3=>3,4=>0));

        return array( 'regex'=>'((a*)(b|abc))(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_21() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>0,3=>0,4=>3),
                        'length'=>array(0=>3,1=>3,2=>0,3=>3,4=>0));

        return array( 'regex'=>'((a*)(abc|b))(c*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_22() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>1,4=>2),
                        'length'=>array(0=>3,1=>1,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a*)((b|abc)(c*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_23() {
        $test1 = array( 'str'=>'abc',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>1,3=>1,4=>2),
                        'length'=>array(0=>3,1=>1,2=>2,3=>1,4=>1));

        return array( 'regex'=>'(a*)((abc|b)(c*))',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_24() {
        $test1 = array( 'str'=>'ab',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0),
                        'length'=>array(0=>2,1=>2));

        return array( 'regex'=>'(a|ab)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_25() {
        $test1 = array( 'str'=>'ab',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0),
                        'length'=>array(0=>2,1=>2));

        return array( 'regex'=>'(ab|a)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_26() {
        $test1 = array( 'str'=>'ab',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2),
                        'length'=>array(0=>2,1=>2,2=>0));

        return array( 'regex'=>'(a|ab)(b*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }

    function data_for_test_att_forcedassoc_27() {
        $test1 = array( 'str'=>'ab',
                        'is_match'=>true,
                        'full'=>true,
                        'index_first'=>array(0=>0,1=>0,2=>2),
                        'length'=>array(0=>2,1=>2,2=>0));

        return array( 'regex'=>'(ab|a)(b*)',
                      'tests'=>array($test1),
                      'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
    }
}
